package com.sfa.mapper;

import com.sfa.dto.Rest;
import com.sfa.dto.RestExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RestMapper
{

    long countByExample(RestExample example);

    int deleteByExample(RestExample example);

    int deleteByPrimaryKey(Integer restId);

    int insert(Rest record);

    int insertSelective(Rest record);

    List<Rest> selectByExample(RestExample example);

    Rest selectByPrimaryKey(Integer restId);

    int updateByExampleSelective(@Param("record") Rest record, @Param("example") RestExample example);

    int updateByExample(@Param("record") Rest record, @Param("example") RestExample example);

    int updateByPrimaryKeySelective(Rest record);

    int updateByPrimaryKey(Rest record);
}